﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace RssV_m_v.ViewModel
{
    /// <summary>
    /// Classe représentant les données des News dans les flux RSS
    /// </summary>
    public class News 
    {
        /// <summary>
        /// Variable contenant le titre de la News
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// Variable contenant la description de la News
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// Variable contenant l'Url de l'image de la News
        /// </summary>
        public string UrlImage { get; set; }

        /// <summary>
        /// Variable contenant l'Url de la News
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// Constructeur par defaut de la News
        /// </summary>
        public News(){}
        /// <summary>
        /// Surcharge du constructeur de la News
        /// </summary>
        /// <param name="title">Contient le titre de la News</param>
        /// <param name="description">Contient la description de la News</param>
        /// <param name="urlImage">Contient l'Url de la News</param>
        public News(string t,string desc, string urlI,string url)
        {
            this.Title = t;
            this.Description = desc;
            this.UrlImage = urlI;
            this.Url = url;
        }
    }
}
